#pragma once
#include "../stdafx.h"
#define CAMERA_ROW (float)0.1745
namespace SLG
{
	extern LPDIRECT3DDEVICE9 g_pd3dDevice;

	class Camera
	{
	public:
		Camera(DWORD,DWORD);
		~Camera(void);
		D3DXMATRIX* GetViewMatrix();

		void Shift(bool); // left/right
		void Row(bool);    // up/down
		void Wolk(bool);   // forward/backward

		void WorldCenter(float,float);
		void Update();
		void ResetCamera(int32,int32);
		float m_fovy;
		float m_aspect;
		float m_zn;
		float m_zf;
	
	private:
		void Init(DWORD,DWORD);
		
	private:
		float m_mod;
		D3DXVECTOR2 m_unit;
		D3DXMATRIX m_ViewMatrix;
		D3DXVECTOR3 m_position;
		D3DXVECTOR3 m_target;
		D3DXVECTOR3 m_up;


		
	};
}